package com.example.aircraft.prop;

public class PropFactory {
    public static AbstractProp setProp(String Type, int LocationX, int LocationY){
        switch (Type){
            case "Blood":return new Prop_Blood(LocationX, LocationY, 5);
            case "Bullet":return new Prop_Bullet(LocationX, LocationY, 5);
            case "Bomb":return new Prop_Bomb(LocationX, LocationY, 0,5);
            case "Redtea":return new Prop_Redtea(LocationX, LocationY);
            default:throw  new AssertionError("参数无效");
        }
    }
}
